package com.loong.global.constant;

public interface MQConstant {
    String BASE_PREFIX = "loong-mq-";
    interface BASE_SUFFIX{
        String QUEUE = "-queue";
        String DEAD_QUEUE = "-dead-queue";
        String EXCHANGE = "-exchange";
        String ROUTE_KEY = "-route-key";
        String DELAY_QUEUE = "-delay-queue";
        String TOPIC_DELAY_QUEUE = "-topic-delay-queue";
        String DELAY_ROUTE_KET = "-delay-route-key";
        String DEAD_TOPIC_ROUTE_KET = "-dead-topic.*";
        String DEAD_ROUTE_KET = "-dead-topic.key";
        String TOPIC_ROUTE_KET = ".*";//匹配一个就够了
        String TOPIC_MESSAGE = ".message";
    }

    interface EXCHANGE {
        /**
         * 用户相关
         */
        String USER = "user";
        String SHOP = "shop";
        String GOODS = "goods";
        String GOODS_CATEGORY = "goods-category";
        String GOODS_SPECIFICATION="goods-specification";
        String GOODS_SKU = "goods-sku";
        String GOODS_BRAND = "goods-brand";

        /**
         * 手机充值
         */
        String PHONE_CHARGE = "phone-charge";
        String ORDER = "order";

    }
    interface ROUTE_KEY {
        String MEMBER = "member";
        String SHOP = "shop";
        String GOODS = "goods";
        String GOODS_CATEGORY = "goods-category";
        String GOODS_SPECIFICATION="goods-specification";
        String GOODS_SKU = "goods-sku";
        String GOODS_BRAND = "goods-brand";
        /**
         * 手机充值
         */
        String PHONE_CHARGE = "phone-charge";
        String ORDER = "order";
        String DEAD_ORDER = "order-dead-topic";

    }

    interface QUEUE_NAME{
        String MEMBER = "member";
        String SHOP = "shop";
        String GOODS = "goods";
        String GOODS_CATEGORY = "goods-category";
        String GOODS_SPECIFICATION="goods-specification";
        String GOODS_SKU = "goods-sku";
        String GOODS_BRAND = "goods-brand";
        String ORDER_ES = "order_es";
        String ORDER_DB = "order_db";
        String DEAD_ORDER_ES = "dead_order_es";
        String DEAD_ORDER_DB = "dead_order_db";
        /**
         * 手机充值
         */
        String PHONE_CHARGE = "phone-charge";
    }
}
